package com.siwei.mes.entity.experiment;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.io.Serializable;
import java.util.Date;


/**
 * 快检/批检与试验台账和运单的关系(ExperimentCheckWaybill)实体类
 *
 * @author makejava
 * @since 2024-06-01 22:48:05
 */
@Data
@Accessors(chain = true)
@Table(name = "pk_experiment_check_waybill")
@ApiModel(value = "ExperimentCheckWaybill", description = "快检/批检与试验台账和运单的关系")
public class ExperimentCheckWaybill implements Serializable {
    private static final long serialVersionUID = 604002970164827539L;
    /**
     * 主键id
     */
    @Id
    @ApiModelProperty(value = "快检/批检与试验台账和运单的关系主键ID", name = "id")
    private Long id;
    /**
     * 试验台账id
     */
    @Column(name = "experiment_id")
    @ApiModelProperty(value = "试验台账id", name = "experimentId")
    private Long experimentId;
    /**
     * 对应快检/批检主键id
     */
    @Column(name = "check_id")
    @ApiModelProperty(value = "对应快检/批检主键id", name = "checkId")
    private Long checkId;
    /**
     * 运单id
     */
    @Column(name = "waybill_id")
    @ApiModelProperty(value = "运单id", name = "waybillId")
    private Long waybillId;
    /**
     * 类型 1-快检 2-批检
     */
    @Column(name = "check_type")
    @ApiModelProperty(value = "类型 1-快检 2-批检", name = "checkType")
    private Integer checkType;
    /**
     * 创建时间
     */
    @Column(name = "create_time")
    @ApiModelProperty(value = "创建时间", name = "createTime")
    private Date createTime;
    /**
     * 生产厂家
     */
    @Column(name = "factory")
    @ApiModelProperty(value = "生产厂家", name = "factory")
    private String factory;
    /**
     * 供货单号
     */
    @Column(name = "supply_task_code")
    @ApiModelProperty(value = "供货单号", name = "supplyTaskCode")
    private String supplyTaskCode;

    @Column(name = "supply_company_company")
    @ApiModelProperty(value = "供货商名称")
    private String supplyCompanyCompany;

    /**
     * 运单代表数量
     */
    @Transient
    @ApiModelProperty(value = "代表数量", name = "behalfNumber")
    private Double behalfNumber;

    /**
     * 原材料签收方量
     */
    @Transient
    @ApiModelProperty(value = "原材料签收方量", name = "qsQuantity")
    private Double qsQuantity;

    /**
     * 1-水泥 2-粉煤灰 3-矿渣粉 4-粗骨料 5-细骨料 6-外加剂 7-混凝土
     */
    @Transient
    @ApiModelProperty(value = "1-水泥 2-粉煤灰 3-矿渣粉 4-粗骨料 5-细骨料 6-外加剂 7-混凝土", name = "experimentType")
    private Integer experimentType;

    /**
     * 物料名称
     */
    @Transient
    @ApiModelProperty(value = "物料名称", name = "materialName")
    private String materialName;

    /**
     * 物料规格
     */
    @Transient
    @ApiModelProperty(value = "物料规格", name = "materialSpecs")
    private String materialSpecs;

    /**
     * 有效期时间
     */
    @Transient
    @ApiModelProperty(value = "有效期时间", name = "batchTime")
    private String batchTime;

    /**
     * 委托时间
     */
    @Transient
    @ApiModelProperty(value = "委托时间", name = "batchTime")
    private Date entrustTime;
}
